#include <core/idle_task.hpp>

IdelTask::IdelTask(std::shared_ptr<Context> context) : Task("Idel", context) {}

bool IdelTask::OnInit()
{
    context->DeactiveNode(Context::StateController);
    context->DeactiveNode(Context::NodeName::PathController);
    context->DeactiveNode(Context::NodeName::LocalPlaner);
    return true;
}

int IdelTask::OnStep(double &precent)
{
    precent = 0.0;
    return 0;
}

bool IdelTask::OnCancle()
{
    return false;
}